﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CMTVision.Widgets
{
    public partial class ShowWidgetNew : CMTVision.Widgets.Impls.TemplatePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void EditButton_Click(object sender, EventArgs e)
        {
            IsInEditMode = !IsInEditMode;
            ForceRefresh();
            EditButton.Text = IsInEditMode ? "StopEdit" : "Edit";
        }

        protected override Control GetTemplateContainer()
        {
            return TemplateContainer;
        }

        protected override void OnInit(EventArgs e)
        {
            PageID = 1;
            base.OnInit(e);
        }
    }
}